home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 142
/
Volume 142 Oct 17 2011 - Damaged.iso
/
Games
/
moko-moko.swf
/
scripts
/
frame_3
/
DoAction.as
< prev
Wrap
Text File
|
2011-10-17
|
12KB
|
352 lines
if(true)
{
if(true)
{
§§push(false);
}
if(!§§pop())
{
if(true)
{
if(true)
{
§§push(false);
}
if(!§§pop())
{
CMG_AS2.ScoreSubmitter.gameId = 343;
CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
CMG_AS2.ScoreSubmitter.gameValidationCode = "moko769c11b032df2adeefe178ed050f6ac6";
var select = new Object();
var sel = true;
var keyok = true;
_global.players = 1;
_global.cheat1 = false;
_global.cheat2 = false;
_global.cheat3 = false;
_global.cheat4 = false;
if(_global.sndval == undefined)
{
_global.sndval = true;
}
var enterpressed = false;
var music = new Sound();
attachMovie("scenografia","scenclip",200003);
this.bglevel1.gotoAndStop(1);
scenclip.gotoAndStop(1);
scenclip._x = 7;
scenclip._y = 19;
restbtn1._alpha = 70;
music.attachSound("fluffy");
if(_global.sndval == true)
{
music.start(0,2000);
music.setVolume(100);
}
if(_global.sndval == true)
{
sndbtn1.gotoAndStop(1);
}
else
{
sndbtn1.gotoAndStop(3);
}
monkey.onPress = function()
{
getUrl("http://www.crazymonkeygames.com", "_blank");
};
jordant.onPress = function()
{
getUrl("http://cappuccino-design.com", "_blank");
};
sndbtn1.onPress = function()
{
_global.sndval = !_global.sndval;
if(_global.sndval == true)
{
sndbtn1.gotoAndStop(2);
music.start(0,2000);
music.setVolume(100);
}
if(_global.sndval == false)
{
sndbtn1.gotoAndStop(4);
music.stop();
}
};
sndbtn1.onRollOver = function()
{
if(_global.sndval == false)
{
sndbtn1.gotoAndStop(4);
}
if(_global.sndval == true)
{
sndbtn1.gotoAndStop(2);
}
};
sndbtn1.onRollOut = function()
{
if(_global.sndval == false)
{
sndbtn1.gotoAndStop(3);
}
if(_global.sndval == true)
{
sndbtn1.gotoAndStop(1);
}
};
opl.onRollOver = function()
{
if(select1._currentframe != 1 and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
select1.gotoAndStop(1);
sel = true;
};
tpl.onRollOver = function()
{
if(select1._currentframe != 2 and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
select1.gotoAndStop(2);
sel = false;
};
hsh.onRollOver = function()
{
if(select1._currentframe != 3 and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
select1.gotoAndStop(3);
sel = true;
};
moregameshit.onRollOver = function()
{
if(select1._currentframe != 4 and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
select1.gotoAndStop(4);
sel = false;
};
officialsitehit.onRollOver = function()
{
if(select1._currentframe != 5 and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
select1.gotoAndStop(5);
sel = true;
};
hsh.onPress = function()
{
if(_global.sndval == true)
{
snd.gotoAndPlay("enter");
}
CMG_AS2.ScoreSubmitter.loadHighScorePage();
};
opl.onPress = function()
{
if(_global.sndval == true)
{
snd.gotoAndPlay("enter");
}
_global.players = select1._currentframe;
_root.gotoAndStop("inonep");
};
tpl.onPress = function()
{
if(_global.sndval == true)
{
snd.gotoAndPlay("enter");
}
_global.players = select1._currentframe;
_root.gotoAndStop("intwop");
};
moregameshit.onPress = function()
{
if(_global.sndval == true)
{
snd.gotoAndPlay("enter");
}
getUrl("http://www.crazymonkeygames.com/", "_blank");
};
officialsitehit.onPress = function()
{
if(_global.sndval == true)
{
snd.gotoAndPlay("enter");
}
getUrl("http://www.cappuccino-design.com/mokomoko/", "_blank");
};
select.onKeyDown = function()
{
if(Key.isDown(17) and Key.isDown(16) and Key.isDown(35))
{
snd.gotoAndPlay("life");
_global.cheat1 = true;
}
if(Key.isDown(17) and Key.isDown(16) and Key.isDown(36))
{
snd.gotoAndPlay("superball");
_global.cheat2 = true;
}
if(Key.isDown(17) and Key.isDown(16) and Key.isDown(46))
{
snd.gotoAndPlay("points");
_global.cheat3 = true;
}
if(Key.isDown(17) and Key.isDown(16) and Key.isDown(45))
{
snd.gotoAndPlay("enlarge");
_global.cheat4 = true;
}
if(Key.isDown(40) and select1._currentframe == 1 and keyok == true)
{
select1.gotoAndStop(2);
if(sel == true and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
sel = false;
keyok = false;
}
if(Key.isDown(40) and select1._currentframe == 2 and keyok == true)
{
select1.gotoAndStop(3);
if(sel == false and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
sel = true;
keyok = false;
}
if(Key.isDown(40) and select1._currentframe == 3 and keyok == true)
{
select1.gotoAndStop(4);
if(sel == true and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
sel = false;
keyok = false;
}
if(Key.isDown(40) and (select1._currentframe == 4 or select1._currentframe == 5) and keyok == true)
{
select1.gotoAndStop(5);
if(sel == false and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
sel = true;
keyok = false;
}
if(Key.isDown(38) and (select1._currentframe == 1 or select1._currentframe == 2) and keyok == true)
{
select1.gotoAndStop(1);
if(sel == false and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
sel = true;
keyok = false;
}
if(Key.isDown(38) and select1._currentframe == 3 and keyok == true)
{
select1.gotoAndStop(2);
if(sel == true and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
sel = false;
keyok = false;
}
if(Key.isDown(38) and select1._currentframe == 4 and keyok == true)
{
select1.gotoAndStop(3);
if(sel == false and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
sel = true;
keyok = false;
}
if(Key.isDown(38) and select1._currentframe == 5 and keyok == true)
{
select1.gotoAndStop(4);
if(sel == true and _global.sndval == true)
{
snd.gotoAndPlay("select");
}
sel = false;
keyok = false;
}
_global.players = select1._currentframe;
if(Key.isDown(13) and keyok == true)
{
if(_global.players == 1)
{
if(_global.sndval == true and enterpressed == false)
{
snd.gotoAndPlay("enter");
}
enterpressed = true;
_root.gotoAndStop("inonep");
}
if(_global.players == 2)
{
if(_global.sndval == true and enterpressed == false)
{
snd.gotoAndPlay("enter");
}
enterpressed = true;
_root.gotoAndStop("intwop");
}
if(_global.players == 3)
{
keyok = false;
if(_global.sndval == true)
{
snd.gotoAndPlay("enter");
}
CMG_AS2.ScoreSubmitter.loadHighScorePage();
}
if(_global.players == 4)
{
keyok = false;
if(_global.sndval == true)
{
snd.gotoAndPlay("enter");
}
getUrl("http://www.crazymonkeygames.com/", "_blank");
}
if(_global.players == 5)
{
keyok = false;
if(_global.sndval == true)
{
snd.gotoAndPlay("enter");
}
getUrl("http://www.cappuccino-design.com/mokomoko/", "_blank");
}
}
};
select.onKeyUp = function()
{
keyok = true;
};
Key.addListener(select);
}
}
§§goto(addr1154);
}
§§push(§§pop() + function §\x1b�\x02§(§�\x07§, §\x01§, §\x02\x01§, §\x01§, §��;\x02�5\x02@§, CMG_AS2, ScoreSubmitter, gameId, gameVersion, §1.0§, gameValidationCode, moko769c11b032df2adeefe178ed050f6ac6, select, Object)
{
});
}
addr1154: